<template>
  <a-card>
    <a-checkbox-group v-model="operate">
      <template v-for="item in OPERATE_LIST" :key="item.value">
        <a-checkbox :value="item.value">
          {{ item.label }}
        </a-checkbox>
      </template>
    </a-checkbox-group>
  </a-card>
</template>

<script lang="ts" setup>
import { defineModel } from 'vue';
import { OPERATE_LIST } from '@/components/bpmn-design/config/config';

const operate = defineModel({ type: [] });

</script>

<script lang="ts">
export default {
  name: 'ConfigOperate'
};
</script>

<style scoped lang="less">
.custom-checkbox-card {
  padding: 10px 16px;
  border: 1px solid var(--color-border-2);
  border-radius: 4px;
  width: 250px;
  box-sizing: border-box;
}

.custom-checkbox-card-mask {
  height: 14px;
  width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid var(--color-border-2);
  box-sizing: border-box;
}

.custom-checkbox-card-mask-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.custom-checkbox-card-title {
  color: var(--color-text-1);
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.custom-checkbox-card:hover,
.custom-checkbox-card-checked,
.custom-checkbox-card:hover .custom-checkbox-card-mask,
.custom-checkbox-card-checked .custom-checkbox-card-mask {
  border-color: rgb(var(--primary-6));
}

.custom-checkbox-card-checked {
  background-color: var(--color-primary-light-1);
}

.custom-checkbox-card:hover .custom-checkbox-card-title,
.custom-checkbox-card-checked .custom-checkbox-card-title {
  color: rgb(var(--primary-6));
}

.custom-checkbox-card-checked .custom-checkbox-card-mask-dot {
  background-color: rgb(var(--primary-6));
}
</style>